package org.csu.mypetstore.service;

import org.csu.mypetstore.persistence.LogMapper;
import org.csu.mypetstore.domain.Log;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LogService {
    Log log;

    @Autowired
    private LogMapper logDAO;

    public LogService(){
        log = new Log();
    }

    public String logInfo(Object ...s){
        return log.logInfomation(s);
    }

    public void insertLogInfo(String username, String logInfo){
        logDAO.insertLog(username, logInfo);
    }
}
